<script>
	import { userLogout } from './api'
	import { local } from '@/common/local'
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
			const token = local.get('token')
			// userLogout({ state: 'out', token }).then(res => {
			// 	if(res.code ===200) {
			// 		local.remove('token')
			// 	}
			// })
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
	@import "./style/animate.scss";
	@import "./style/flex.scss";
	@import "./style/base.scss";
	/*每个页面公共css */
	.safe-area-inset-bottom {
		padding-bottom: 0;  
		padding-bottom: constant(safe-area-inset-bottom);  
		padding-bottom: env(safe-area-inset-bottom);  
	}
</style>
